<template>
  <el-row :gutter="20">
    <el-row>
      <navigator></navigator>
    </el-row>

    <h1>
      区块链操作员运维练习主页面
    </h1>

  </el-row>

</template>

<script>
import Navigator from "@/components/Navigator";
// import config from '@/config'
export default {
  name: "Home",
  components: {Navigator},
  created() {
    let token = this.$cookies.get('token')
    console.log(`***************  token is ${token}  **********************`)
    this.axios.get(`/v1/tokenVerify?token=${token}`).then((response) => {
      // console.log(response.data)
      if (response.data.code != 200) {
        this.$router.push('/login')
      }
    }).catch((response) => {
      console.log(response.data)
      this.$router.push('/login')
    })

  }
}
</script>

<style scoped>

</style>